﻿<%@ Page Language="C#" AutoEventWireup="true" CodeFile="Score2.aspx.cs" Inherits="BalanceCenter_Score2" %>

<%@ Register TagPrefix="ShoveWebUI" Namespace="Shove.Web.UI" Assembly="Shove.Web.UI.2 For.NET 2.0" %>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head id="Head1" runat="server">
    <title>工资管理系统 - 会员中心</title>
    <link href="../Style/css.css" rel="stylesheet" type="text/css" />
    <link href="../Style/main.css" rel="stylesheet" type="text/css" />
</head>
<body bottommargin="0" leftmargin="0" topmargin="0" rightmargin="0">
    <form id="form1" runat="server">
    <table border="0" cellpadding="0" cellspacing="0" width="100%">
        <tr>
            <td style="height: 50px" align="center">
                <span style="font-size: 12pt; color: #3399cc"><strong>奖金查询<asp:TextBox ID="tbID"
                    runat="server" Visible="False"></asp:TextBox></strong></span>
            </td>
        </tr>
        <asp:Panel ID="Panel1" runat="server" Visible="false">
            <tr>
                <td align="center" style="height: 138px" valign="top">
                    <table align="center" border="0" cellpadding="0" cellspacing="0" style="width: 94%">
                        <tr>
                            <td width="9">
                                <img height="19" src="../Images/Table1/table_leftUp.jpg" width="9" />
                            </td>
                            <td background="../Images/Table1/table_Up.jpg">
                                &nbsp;
                            </td>
                            <td width="9">
                                <img height="19" src="../Images/Table1/table_rightUp.jpg" width="9" />
                            </td>
                        </tr>
                        <tr>
                            <td background="../Images/Table1/table_left.jpg" width="9">
                                &nbsp;
                            </td>
                            <td bgcolor="#f5faff">
                                <table id="Table2" bgcolor="#ffffff" border="0" bordercolor="#ffffff" cellpadding="0"
                                    cellspacing="1" style="border-collapse: collapse" width="100%">
                                    <tr>
                                        <td align="center" bgcolor="#dae6f3" style="width: 264px">
                                            类别
                                        </td>
                                        <td align="center" bgcolor="#f0f4f8">
                                            左区
                                        </td>
                                        <td align="center" bgcolor="#f0f4f8">
                                            右区
                                        </td>
                                    </tr>
                                    <tr>
                                        <td align="center" bgcolor="#dae6f3" style="width: 264px">
                                            总业绩(市场情况)
                                        </td>
                                        <td align="center" bgcolor="#f0f4f8">
                                            <asp:Label ID="labSL1" runat="server" ForeColor="Red"></asp:Label>
                                        </td>
                                        <td align="center" bgcolor="#f0f4f8">
                                            <asp:Label ID="labSR1" runat="server" ForeColor="Red"></asp:Label>
                                        </td>
                                    </tr>
                                    <tr>
                                        <td align="center" bgcolor="#dae6f3" style="width: 264px">
                                            总业绩(本月)
                                        </td>
                                        <td align="center" bgcolor="#f0f4f8">
                                            <asp:Label ID="labSL2" runat="server" ForeColor="Red"></asp:Label>
                                        </td>
                                        <td align="center" bgcolor="#f0f4f8">
                                            <asp:Label ID="labSR2" runat="server" ForeColor="Red"></asp:Label>
                                        </td>
                                    </tr>
                                    <tr>
                                        <td align="center" bgcolor="#dae6f3" style="width: 264px">
                                            今日业绩(新)
                                        </td>
                                        <td align="center" bgcolor="#f0f4f8">
                                            <asp:Label ID="labSL3" runat="server" ForeColor="Red"></asp:Label>
                                        </td>
                                        <td align="center" bgcolor="#f0f4f8">
                                            <asp:Label ID="labSR3" runat="server" ForeColor="Red"></asp:Label>
                                        </td>
                                    </tr>
                                    <tr>
                                        <td align="center" bgcolor="#dae6f3" style="width: 264px">
                                            剩余(未碰局)
                                        </td>
                                        <td align="center" bgcolor="#f0f4f8">
                                            <asp:Label ID="labSL4" runat="server" ForeColor="Red"></asp:Label>
                                        </td>
                                        <td align="center" bgcolor="#f0f4f8">
                                            <asp:Label ID="labSR4" runat="server" ForeColor="Red"></asp:Label>
                                        </td>
                                    </tr>
                                    <tr>
                                        <td align="center" bgcolor="#dae6f3" style="width: 264px">
                                            总碰数
                                        </td>
                                        <td align="center" colspan="2" bgcolor="#f0f4f8">
                                            <asp:Label ID="labSumDistilled" runat="server" ForeColor="Red"></asp:Label>
                                        </td>
                                    </tr>
                                </table>
                            </td>
                            <td background="../Images/Table1/table_right.jpg" width="9">
                                &nbsp;
                            </td>
                        </tr>
                        <tr>
                            <td width="9">
                                <img height="21" src="../Images/Table1/table_leftDown.jpg" width="9" />
                            </td>
                            <td background="../Images/Table1/table_Down.jpg">
                                &nbsp;
                            </td>
                            <td width="9">
                                <img height="21" src="../Images/Table1/table_rightDown.jpg" width="9" />
                            </td>
                        </tr>
                    </table>
                </td>
            </tr>
        </asp:Panel>
        <tr>
            <td align="center">
                <table width="96%" border="0" cellpadding="0" cellspacing="0">
                    <tr>
                        <td align="left" style="height: 27px">
                            <strong><span style="color: #3399cc">奖金收支汇总表</span></strong>
                        </td>
                        <td align="right">
                            <asp:DropDownList ID="ddlYear" runat="server" Width="88px">
                            </asp:DropDownList>
                            <asp:DropDownList ID="ddlMonth" runat="server" Width="80px">
                                <asp:ListItem Value="1">1 月</asp:ListItem>
                                <asp:ListItem Value="2">2 月</asp:ListItem>
                                <asp:ListItem Value="3">3 月</asp:ListItem>
                                <asp:ListItem Value="4">4 月</asp:ListItem>
                                <asp:ListItem Value="5">5 月</asp:ListItem>
                                <asp:ListItem Value="6">6 月</asp:ListItem>
                                <asp:ListItem Value="7">7 月</asp:ListItem>
                                <asp:ListItem Value="8">8 月</asp:ListItem>
                                <asp:ListItem Value="9">9 月</asp:ListItem>
                                <asp:ListItem Value="10">10月</asp:ListItem>
                                <asp:ListItem Value="11">11月</asp:ListItem>
                                <asp:ListItem Value="12">12月</asp:ListItem>
                            </asp:DropDownList>
                            <asp:Button ID="btnGO" runat="server" Width="60px" Text="查询" OnClick="btnGO_Click">
                            </asp:Button>
                            <asp:Button ID="btnDownload" runat="server" OnClick="btnDownload_Click" Text="下载"
                                Width="60px" />
                            &nbsp;
                        </td>
                    </tr>
                    <tr>
                        <td colspan="2">
                            <asp:DataGrid ID="g" runat="server" BackColor="#6CA4E4" CellPadding="5" Width="100%"
                                CellSpacing="1" BorderWidth="0px" AllowSorting="True" AutoGenerateColumns="False"
                                AllowPaging="True" CssClass="gStyle" OnItemDataBound="g_ItemDataBound">
                                <FooterStyle HorizontalAlign="Center" ForeColor="#330099" BackColor="#FFFFCC"></FooterStyle>
                                <SelectedItemStyle HorizontalAlign="Center" Font-Bold="True" ForeColor="White"></SelectedItemStyle>
                                <HeaderStyle HorizontalAlign="Center" ForeColor="Navy" VerticalAlign="Middle" CssClass="gHeader">
                                </HeaderStyle>
                                <ItemStyle CssClass="gItem" BackColor="White" />
                                <Columns>
                                    <asp:BoundColumn DataField="Year" HeaderText="年"></asp:BoundColumn>
                                    <asp:BoundColumn DataField="Month" HeaderText="月"></asp:BoundColumn>
                                    <asp:BoundColumn DataField="Day" HeaderText="日"></asp:BoundColumn>                                    
                                    <asp:BoundColumn DataField="Earning2" HeaderText="对碰奖"></asp:BoundColumn>
                                    <asp:BoundColumn DataField="Earning3" HeaderText="辅导奖"></asp:BoundColumn>
                                    <asp:BoundColumn DataField="Earning4" HeaderText="推荐奖"></asp:BoundColumn>
                                    <asp:BoundColumn DataField="Earning5" HeaderText="区域代理津贴"></asp:BoundColumn>
                                    <asp:BoundColumn DataField="Earning106" HeaderText="奖金转电子货币"></asp:BoundColumn>
                                    <asp:BoundColumn DataField="Earning102" HeaderText="税金"></asp:BoundColumn>
                                    <asp:BoundColumn DataField="Earning111" HeaderText="重复消费"></asp:BoundColumn>                                    
                                    <asp:BoundColumn DataField="Earning103" HeaderText="网络管理费"></asp:BoundColumn>
                                    <asp:BoundColumn DataField="Earning104" HeaderText="奖金结算"></asp:BoundColumn>
                                    <asp:BoundColumn HeaderText="奖金结余"></asp:BoundColumn>
                                </Columns>
                                <PagerStyle Visible="False" HorizontalAlign="Center" ForeColor="#330099" BackColor="#FFFFCC">
                                </PagerStyle>
                            </asp:DataGrid>
                        </td>
                    </tr>
                    <tr>
                        <td colspan="2" align="left">
                            <strong><span style="color: #3399cc">
                                <br />
                                奖金收支明细表</span></strong>
                        </td>
                    </tr>
                    <tr>
                        <td colspan="2">
                            <asp:DataGrid ID="g2" runat="server" BackColor="#6CA4E4" CellPadding="5" Width="100%"
                                CellSpacing="1" BorderWidth="0px" AllowSorting="True" AutoGenerateColumns="False"
                                AllowPaging="True" CssClass="gStyle" OnItemDataBound="g2_ItemDataBound">
                                <FooterStyle HorizontalAlign="Center" ForeColor="#330099" BackColor="#FFFFCC"></FooterStyle>
                                <SelectedItemStyle HorizontalAlign="Center" Font-Bold="True" ForeColor="White"></SelectedItemStyle>
                                <HeaderStyle HorizontalAlign="Center" ForeColor="Navy" VerticalAlign="Middle" CssClass="gHeader">
                                </HeaderStyle>
                                <ItemStyle CssClass="gItem" BackColor="White" />
                                <Columns>
                                    <asp:BoundColumn DataField="DateTime" HeaderText="时间">
                                        <ItemStyle HorizontalAlign="Center" />
                                        <HeaderStyle HorizontalAlign="Center" />
                                    </asp:BoundColumn>
                                    <asp:BoundColumn DataField="Memo" HeaderText="摘要">
                                        <ItemStyle Font-Bold="False" Font-Italic="False" Font-Overline="False" Font-Strikeout="False"
                                            Font-Underline="False" HorizontalAlign="Left" />
                                        <HeaderStyle HorizontalAlign="Center" />
                                    </asp:BoundColumn>
                                    <asp:BoundColumn DataField="MoneyAdd" HeaderText="收入">
                                        <ItemStyle Font-Bold="False" Font-Italic="False" Font-Overline="False" Font-Strikeout="False"
                                            Font-Underline="False" HorizontalAlign="Right" />
                                        <HeaderStyle HorizontalAlign="Center" />
                                    </asp:BoundColumn>
                                    <asp:BoundColumn DataField="MoneySub" HeaderText="支出">
                                        <ItemStyle Font-Bold="False" Font-Italic="False" Font-Overline="False" Font-Strikeout="False"
                                            Font-Underline="False" HorizontalAlign="Right" />
                                        <HeaderStyle HorizontalAlign="Center" />
                                    </asp:BoundColumn>
                                    <asp:BoundColumn DataField="Balance" HeaderText="余额">
                                        <ItemStyle BackColor="Honeydew" HorizontalAlign="Right" />
                                        <HeaderStyle HorizontalAlign="Center" />
                                    </asp:BoundColumn>
                                </Columns>
                                <PagerStyle Visible="False" HorizontalAlign="Center" ForeColor="#330099" BackColor="#FFFFCC">
                                </PagerStyle>
                            </asp:DataGrid>
                            <ShoveWebUI:ShoveGridPager ID="gPager" BorderWidth="0" CssClass="gStyle" BorderStyle="None"
                                runat="server" Width="100%" ShowSelectColumn="False" DataGrid="g2" OnPageWillChange="gPager_PageWillChange"
                                OnSortBefore="gPager_SortBefore" AlternatingRowColor="White" HotColor="White"
                                GuiseColor="False" ClientNavigation="true" PageSize="20" />
                        </td>
                    </tr>
                </table>
            </td>
        </tr>
    </table>
    </form>
</body>
</html>
